<?php
/**
 * @author    Joomlastro.com
 * @copyright Copyright (C) 2011 Joomlastro.com. All rights reserved.
 * @license   GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
 */	
 
// No direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class CprojectViewSections extends JView
{
	protected $items;
	protected $state;
	protected $params;
	
	public function display($tpl = null)
	{	
		$app				= JFactory::getApplication();
		$this->state		= $this->get('State');
		$this->items		= $this->get('Items');
		$this->params 		= $app->getParams();
		
		if (count($errors = $this->get('Errors'))) {
			JError::raiseError(500, implode("\n", $errors));
			return false;
		}
		
		//$this->_prepareDocument();
		
		parent::display($tpl);
	}

}
